<template>
  <div>当前鼠标位置</div>
  <div>x: {{ mouse.x }}</div>
  <div>y: {{ mouse.y }}</div>
  <div>当前点击次数：{{ count }}</div>
  <button @click="add">点击</button>
</template>

<script setup>
import addEvent from './utils/addEvent.js'
import mouseEvent from './utils/mouseEvent'
// 自增
const { count, add } = addEvent()
// 鼠标
const mouse = mouseEvent()
</script>
